package com.wwg.spring.bean.factory.config;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @类描述: 自定义bean工厂处理器   容器启动周期只会进来一次 不同于 beanPostProcessor 每个bean初始化后都会进来 很矜持 的
 * @Author wwg
 * @date: 2021/7/15 15:43
 * @Version: 1.0
 **/
@Component
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        System.out.println("MyBeanFactoryPostProcessor.postProcessBeanFactory 》》》");
    }
}
